const express = require('express');
const router = express.Router();
const userController = require('../controllers/userController');

// 获取所有用户信息
router.get('/users', userController.getUsers);

// 新增用户
router.post('/users', userController.addUser);

// 编辑用户
router.post('/editUsers', userController.editUser);

// 删除用户
router.post('/deleteUser', userController.deleteUser);


module.exports = router;
